package configuration;
import java.util.concurrent.*;
public class DBEntry {
private ConcurrentHashMap <String, String> tagDB;
private String identifier;
public DBEntry(String id) {
	tagDB = new ConcurrentHashMap<String,String>();
	identifier = id;

}
public String getID() {
	return identifier;
}
public void add(String tag, String value) throws EntryExists {
	if(tagDB.containsKey(tag)) {
		throw new EntryExists();
	}
	else {
		tagDB.put(tag, value);
	}
	
}
public boolean isTag(String tag) {
	return tagDB.containsKey(tag);
}
}
